package com.example.tse.rbhttpservice.service.goods.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.goods.model.GoodsGetCategoryListChilds;
/**
 * 获取分类列表
 * @author wliu
 * edit tse
 */
public class GoodsGetCategoryList extends RudderResponse{
    
    private String catId = "";
		
    
    private String catName = "";
		
    
    private String catImg = "";
		
    
    private List<GoodsGetCategoryListChilds> childs = new ArrayList<GoodsGetCategoryListChilds>();
		
    
    private String linkType = "";
		
    
    private String target = "";
		
	
    /**
     * @return catId
     */	
    public String getCatId() { 
	    return this.catId;
    };
	
	/**
     * @return catId
     */	
    public void setCatId(String catId) { 
        this.catId = catId;
    };
    
    /**
     * @return catName
     */	
    public String getCatName() { 
	    return this.catName;
    };
	
	/**
     * @return catName
     */	
    public void setCatName(String catName) { 
        this.catName = catName;
    };
    
    /**
     * @return catImg
     */	
    public String getCatImg() { 
	    return this.catImg;
    };
	
	/**
     * @return catImg
     */	
    public void setCatImg(String catImg) { 
        this.catImg = catImg;
    };
    
    /**
     * @return childs
     */	
    public List<GoodsGetCategoryListChilds> getChilds() { 
	    return this.childs;
    };
	
	/**
     * @return childs
     */	
    public void setChilds(List<GoodsGetCategoryListChilds> childs) { 
        this.childs = childs;
    };
    
    /**
     * @return linkType
     */	
    public String getLinkType() { 
	    return this.linkType;
    };
	
	/**
     * @return linkType
     */	
    public void setLinkType(String linkType) { 
        this.linkType = linkType;
    };
    
    /**
     * @return target
     */	
    public String getTarget() { 
	    return this.target;
    };
	
	/**
     * @return target
     */	
    public void setTarget(String target) { 
        this.target = target;
    };
    
	
        
    private static void filterFor(GoodsGetCategoryListChilds goods) {
        if (goods.getCatId() == null) {
            goods.setCatId("");
        }
        if (goods.getCatSubImg() == null) {
            goods.setCatSubImg("");
        }
        if (goods.getCatName() == null) {
            goods.setCatName("");
        }
    }
        
    public static void filter(GoodsGetCategoryList goods) {
        if (goods.getCatId() == null) {
            goods.setCatId("");
        }
        if (goods.getCatName() == null) {
            goods.setCatName("");
        }
        if (goods.getCatImg() == null) {
            goods.setCatImg("");
        }
        if (goods.getChilds() == null) {
            goods.setChilds(new ArrayList<GoodsGetCategoryListChilds>());
        } else {
            for (GoodsGetCategoryListChilds item : goods.getChilds()) {
                filterFor(item);
            }
        }
        if (goods.getLinkType() == null) {
            goods.setLinkType("");
        }
        if (goods.getTarget() == null) {
            goods.setTarget("");
        }
    }
}
